<%@ page pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>美瀛商旅-员工中心</title>
<link href="${ctxPath}/css/style/info.css" rel="stylesheet" type="text/css" />
<link href="${ctxPath}/css/style/head.css" rel="stylesheet" type="text/css" />
<link href="${ctxPath}/css/style/foot.css" rel="stylesheet" type="text/css" />

	<SCRIPT src="${ctxPath}/css/style/jquery-1.4.2.js" type=text/javascript></SCRIPT>
	
		
	
	<link type="text/css" href="${ctxPath}/css/style/base/jquery.ui.all.css" rel="stylesheet" />
	<link type="text/css" href="${ctxPath}/css/style/demos.css" rel="stylesheet" />
	
	
	 	<link href="${ctxPath}/css/style/Tooltip.css" type=text/css rel=stylesheet />
		<SCRIPT src="${ctxPath}/css/style/superValidator.js" type=text/javascript></SCRIPT>
		
<script  type="text/javascript" src="${ctxPath}/css/style/right_bottom.js"></script>
	
<script type="text/javascript" src="${ctxPath}/resource/common/js/jquery/ui/ui.core.js"></script>
<script type="text/javascript" src="${ctxPath}/resource/common/js/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctxPath}/resource/common/js/dynamic.jsp"></script>
<script type="text/javascript" src="${ctxPath}/resource/common/js/core/core.js"></script> 
 <link rel="stylesheet" type="text/css" media="screen" href="${ctxPath}/resource/common/js/jquery/jquery-calendar.css"/>
<link rel="stylesheet" href="${ctxPath}/resource/common/css/themes/default/ui.all.css" type="text/css" media="screen" title="Flora (Default)" />

<SCRIPT src="${ctxPath}/css/style/menu.js" type="text/javascript" />
<%-- <%@ taglib prefix="nav" tagdir="/WEB-INF/tags/nav" %>
<script type="text/javascript" src="${ctxPath}/resource/common/js/dynamic.jsp"></script>
<script type="text/javascript"	src="${ctxPath}/resource/common/js/jquery/jquery-1.4.2.min.js"></script> 
<script type="text/javascript" src="${ctxPath}/resource/common/js/jquery/ui/ui.core.js"></script>
<script type="text/javascript" src="${ctxPath}/resource/common/js/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctxPath}/resource/common/js/core/core.js"></script> 

<link href="${ctxPath}/resource/common/css/admin.css" rel="stylesheet" type="text/css" />
<link href="${ctxPath}/resource/common/css/core.css" rel="stylesheet" type="text/css" />
<link href="${ctxPath}/resource/common/css/data.css" rel="stylesheet" type="text/css" />
<link href="${ctxPath}/resource/common/css/tab.css" rel="stylesheet" type="text/css" /> --%>

<%-- 
<link type="text/css" href="${ctxPath}/resource/front/lib/base/jquery.ui.all.css" rel="stylesheet" />
 --%>
<script type="text/javascript" src="${ctxPath}/ckeditor/ckeditor.js"></script>
<script language="javascript">
function tabs(n)
{
var len = 4;
for (var i = 1; i <= len; i++)
{
document.getElementById('tab_a' + i).style.display = (i == n) ? 'block' : 'none';
document.getElementById('_' + i).style.display = (i == n) ? 'inline' : 'none';
}
}
function cl(n)
{
var len = 4;
for (var i = 1; i <= len; i++)
{
document.getElementById('tab_a' + i).style.display = (i == n) ? 'none' : 'none';
document.getElementById('_' + i).style.display = (i == n) ? 'none' : 'none';
}
}


$(function(){
	  updateOrder();
	  }); 

function updateOrder(){
	d = new Date(); // 创建 Date 对象。 
	s="temp";
	s += d.getYear() ; // 获取年份。 
	s += d.getMonth()+1 ; // 获取月份。 
	s += d.getDate(); // 获取日。 
	s += d.getHours(); // 获取小时。
	s += d.getMinutes(); // 获取分钟。
	s += d.getSeconds(); // 获取秒数。
	$.ajax({
		type : "get",
		url : __ctxPath+"/admin/order/bOrders.do?cmd=getOrderCounts&tempVar="+s,
		dataType : "String",
		async:true,
		success : function(data) {
			var array=data.split(";");
			/* var WAIT_SEAT_CONFIRM=array[0].split(":")[1];
			var BOOK_OK=array[1].split(":")[1];
			var CANCEL_OK=array[2].split(":")[1];
			var PAY_OK=array[3].split(":")[1];
			var APPLY_CHANGE=array[4].split(":")[1];
			var APPLY_REFUNDMENT=array[5].split(":")[1];
			var WAIT_REFUNDMENT=array[6].split(":")[1]; */

		    var WAIT_SEAT_CONFIRM=array[0];
			var BOOK_OK=array[1];
			var CANCEL_OK=array[2];
			var PAY_OK=array[3];
			var APPLY_CHANGE=array[4];
			var APPLY_REFUNDMENT=array[5];
			var WAIT_REFUNDMENT=array[6]; 
			if(WAIT_SEAT_CONFIRM>0||BOOK_OK>0||CANCEL_OK>0||PAY_OK>0||APPLY_CHANGE>0||APPLY_REFUNDMENT>0||WAIT_REFUNDMENT>0){
				  // if($("#close").text()=="打开")
	                //  $("#close").click();
			}
			$("#WAIT_SEAT_CONFIRM").text(WAIT_SEAT_CONFIRM);
			$("#BOOK_OK").text(BOOK_OK);
			$("#CANCEL_OK").text(CANCEL_OK);
			$("#PAY_OK").text(PAY_OK);
			$("#APPLY_CHANGE").text(APPLY_CHANGE);
			$("#APPLY_REFUNDMENT").text(APPLY_REFUNDMENT);
			$("#WAIT_REFUNDMENT").text(WAIT_REFUNDMENT);
		},
		error : function() {
			$("#WAIT_SEAT_CONFIRM").text(0);
			$("#BOOK_OK").text(0);
			$("#CANCEL_OK").text(0);
			$("#PAY_OK").text(0);
			$("#APPLY_CHANGE").text(0);
			$("#APPLY_REFUNDMENT").text(0);
			$("#WAIT_REFUNDMENT").text(0);
		}
	});
	// var timer = setTimeout("updateOrder()",2000);   
}
  
</script>
<decorator:head/>
</head>
<body>
	<%@include file="../common/admin_header.jspf" %>
	<div id="info">
		  <div id="left">
			<%@include file="../common/left.jspf" %>
		</div>
		<div id="right">
			<decorator:body/>	
		</div>
	 </div>
	 
		<div id="msgDiv" class="divCss">
        <div id="ditTitle" class="contentCssHeight titleCss">
        	<strong>有订单需要你尽快处理</strong>
            <span id="close">打开</span>
            </div>
        	<div id="divContent" class="contentCss">
            	<ul>
                <li><strong>请您关注如下信息，并尽快处理</strong></li>
                <li><a href="${ctxPath}/admin/order/bOrders.do?orderStatus=7"><span id="WAIT_CONFIRM">0</span>等待座位确认</a></li>
                <li><a href="${ctxPath}/admin/order/bOrders.do?orderStatus=0"><span id="BOOK_OK">0</span>订座成功等待支付</a></li>
                <li><a href="${ctxPath}/admin/order/bOrders.do?orderStatus=12"><span id="CANCEL_OK">0</span>订单取消</a></li>
                <li><a href="${ctxPath}/admin/order/bOrders.do?orderStatus=1"><span id="PAY_OK">0</span>支付成功等待出票</a></li>
                <li><a href="${ctxPath}/admin/order/bOrders.do?orderStatus=40"><span id="APPLY_CHANGE">0</span>改签申请中</a></li>
                <li><a href="${ctxPath}/admin/order/bOrders.do?orderStatus=8"><span id="APPLY_REFUNDMENT">0</span>退票申请中</a></li>
                <li><a href="${ctxPath}/admin/order/bOrders.do?orderStatus=31"><span id="WAIT_REFUNDMENT">0</span>退票完成等待退款</a></li>
                </ul>
            </div>
    </div>
	<%@include file="../common/footer.jspf" %>
</body>
</html>
